package com.example.fisttestproject.entity;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "user")
public class  User{
    @PrimaryKey
    public  long id;

    public  String name;

    public long getId() {
        return id;
    }


    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "用户{" +
                "id: " + id +
                "姓名:'" + name + '\'' +
                '}'+"\n";
    }
}
